package oneD.fem;

import inf.text.ArrayFormat;

public class Force {
	private double[] components_ = new double[3];

	public Force(double r1, double r2, double r3) {
		components_[0] = r1;
		components_[1] = r2;
		components_[2] = r3;
	}

	public double getComponent(int c) {
		return components_[c];
	}

	public void scale(double s) {
		// this method is useful when setting load control configuration
		components_[0] *= s;
		components_[1] *= s;
		components_[2] *= s;
	}

	public void print() {
		System.out.print(ArrayFormat.format(components_));
	}
}
